package com.wyh.domain.dto.groupOne.resource;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PaymentHistory {

    @ApiModelProperty(value = "资源id", required = true)
    private Integer id;

    @ApiModelProperty(value = "客户名称(条件查询必传)", required = true)
    private String customername;

    @ApiModelProperty(value = "计费项目(条件查询必传)", required = true)
    private String billingitemsname;

    @ApiModelProperty("计费性质")
    private Integer billingnature;

    @ApiModelProperty("单价")
    private BigDecimal price;

    @ApiModelProperty("计算日期起")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date starttime;

    @ApiModelProperty("计算日期止")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endtime;

    @ApiModelProperty("应收金额")
    private Double receivable;

    @ApiModelProperty("账期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date accounttime;

    @ApiModelProperty("账单编号")
    private Integer billnumber;

    @ApiModelProperty("欠款金额")
    private Double arrears;
}
